package com.yykj.drup.server.service.feign.fallback;

import com.yykj.common.vo.ResultVO;
import com.yykj.drup.client.WiFenXiaoOrder;
import com.yykj.drup.client.form.WiFenXiaoPayOrderFrom;
import com.yykj.drup.server.service.feign.WiFenXiaoServerFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author zeng
 * @Date 2022/4/1
 */
@Service
@Slf4j
public class WiFenXiaoServerFeignFallBack implements WiFenXiaoServerFeign {
    @Override
    public ResultVO<WiFenXiaoOrder> payOrder(WiFenXiaoPayOrderFrom wiFenXiaoPayOrderFrom) {
        log.error("服务调用失败 ：wifenxiao-server.payOrder()");
        throw new RuntimeException("WiFenXiaoServerFeignFallBack");
    }

    @Override
    public WiFenXiaoOrder findOrder(String orgOrderNu) {
        log.error("服务调用失败 ：wifenxiao-server.findOrder()");
        throw new RuntimeException("WiFenXiaoServerFeignFallBack");
    }
}
